package com.newzqxq.common.enums;

/**
 * @author 石清
 * @Description   0=灰名单，1=白名单,2=黑名单  3=未识别
 * @create 2017-12-04 12:23
 **/
public enum AuthenticationEnums {

    PASS_AUTHENTICATION(1,"通过认证"),
    AGAIN_AUTHENTICATION(2,"重新认证");
    private Integer code;
    private String message;

    AuthenticationEnums(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public static AuthenticationEnums get(int code){
        for (AuthenticationEnums order: AuthenticationEnums.values()){
            if (order.getCode()==code){
                return order;
            }
        }
        return null;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
